home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / cupsys-driver-gutenprint.preinst < prev    next >
Encoding:
Text File  |  2007-03-27  |  585 b   |  27 lines

  1. #! /bin/sh
  2. # preinst script for cupsys-driver-gutenprint
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <new-preinst> `install'
  10. #        * <new-preinst> `install' <old-version>
  11. #        * <new-preinst> `upgrade' <old-version>
  12. #        * <old-preinst> `abort-upgrade' <new-version>
  13.  
  14. case "$1" in
  15. install|upgrade)
  16.     if dpkg --compare-versions "$2" le "5.0.0-2"; then
  17.         rm -rf /usr/share/cups/model/gutenprint
  18.     fi
  19. esac
  20.  
  21. # dh_installdeb will replace this with shell code automatically
  22. # generated by other debhelper scripts.
  23.  
  24.  
  25.  
  26. exit 0
  27.